using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using DCCLocomotiveFactory;

namespace LocoFormClient
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void btnConnect_Click(object sender, EventArgs e)
        {
            try
            {
                int address = int.Parse(textBoxAddress.Text);

                LocoControlForm locoForm = new LocoControlForm(textBoxAddress.Text, "Loco" + textBoxAddress.Text, false);

                locoForm.Show();
            }
            catch (Exception)
            {
            }
        }
    }
}